<%--
  Comment to this file see:
  http://www.Torsten-Horn.de/techdocs/jsp-upload.htm

  Uses Jason Pell's MultipartRequest to upload a file:
  http://www.geocities.com/jasonpell/programs.html

  Uses Marco Schmidt's ImageInfo to get image file information:
  http://schmidt.devlib.org/image-info
--%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@ page import = "secure.Avatarmgnt" %>
<%@page import="util.Constant"%>
<h2>Upload einer Bilddatei vom Client zum Server</h2>
<form  action="index.jsp?<%=Constant.CONTENT %>=<%=Constant.profile %>&Profilbearbeiten=Bearbeiten" enctype="multipart/form-data" method="post" >
<table>
  <tr>
    <td>Bilddatei (JPG, PNG, GIF):</td>
    <td><input type="file" name="myFile" size="50" maxlength="1000000" accept="image/*" />
        <input type="submit" value="Upload"/></td>
  </tr>
</table>

</form>

<br/>
<%out.print(Avatarmgnt.readAndShowImage( request , session, getServletContext())); %>
